package com.gengzp.permission.model;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName UserPrincipalModel
 * @Description 用户认证主题模型
 * 用于存放请求携带的token解析得到的用户认证信息
 * @Author gengzp
 * @Date 2025/8/14 21:40
 */
public class UserPrincipalModel implements Serializable {

    @Serial
    private static final long serialVersionUID = -1286503487117549815L;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户绑定的角色id集合
     */
    private List<String> roleIds;

    /**
     * 用户token
     */
    private String token;

    /**
     * 客户端类型
     */
    private String clientType;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<String> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<String> roleIds) {
        this.roleIds = roleIds;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

}
